package com.qqcommon;

import com.qqserver.service.ClientConnectServerThread;

import java.util.HashMap;

public class ManageClientServerThread {
    //用来存放线程  这里的key值即为用户名,value值即为线程
    private static HashMap<String, ClientConnectServerThread> hm=new HashMap<>();

    //将某个线程添加到集合
    public static void addClientConnectServerThread(String useid,ClientConnectServerThread clientConnectServerThread){
        hm.put(useid,clientConnectServerThread);
    }
    //通过useid用户名获取其线程
    public static ClientConnectServerThread getClientConnectServerThread(String useid){
        return hm.get(useid);
    }


}
